package com.flyaudio.xiaopengautopilot.util;

import java.util.HashMap;

public class DataInfo {
    private String TAG = "DataInfo";
    private HashMap<String, Object> dataParamerMap = new HashMap<>();

    private static final DataInfo instance = new DataInfo();

    private DataInfo() {
    }

    public static DataInfo getInstance() {
        return instance;
    }

    public void setDataParamerInfo(String keyName, Object value) {
        dataParamerMap.put(keyName, value);
    }

    public Object getDataParamerInfo(String key)
    {
        if (dataParamerMap != null) {
            return dataParamerMap.get(key);
        }
        return null;
    }

}
